package com.football.fragment.news;

import java.util.ArrayList;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.football.R;
import com.football.model.Group;

@SuppressLint("ValidFragment")
public class DetailFragment extends Fragment {

	Activity activity;
	View view;
	Context context;
	ArrayList<Group> groupList;
	static String ARG_POSITION = "id";

	public DetailFragment() {
		super();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.fragment_detail, null);
		context = view.getContext();
		
		TextView title = (TextView)view.findViewById(R.id.article_title);
		title.setText("Banned Costa will not change");
		TextView sapo = (TextView)view.findViewById(R.id.article_sapo);
		sapo.setText("Chelsea striker Diego Costa insists he will not alter his aggressive style of play after serving his three-match suspension.");
		TextView detail = (TextView)view.findViewById(R.id.article_detail);
		detail.setText("The 26-year-old was retrospectively given the ban this week for violent " +
				"conduct after an independent regulatory commission on Friday ruled he " +
				"deliberately stamped on the ankle of the Liverpool midfielder Emre Can " +
				"during Tuesday's Capital One Cup semi-final second leg."
+"Although Costa claims there was no malicious intent behind the stamp, he will take the decision in his stride but not let it affect the way he approaches the game."+
"No angel"
+"As far as what happened on Tuesday, the main thing is when I get home I can go home and I can go to sleep knowing that I've not done anything wrong, because I never meant to do that and it was not on purpose, the Spain international told the Daily Telegraph."
+"You can clearly see that on the video. But it is a suspension. I have to accept that, I have to take it. Obviously I feel sad because I'm not going to be able to help the team, to play. But I have accept it and respect it.");

		return view;
	}
	
	
}
